import matplotlib.pyplot as plt
import numpy as np

# 生成示例数据
np.random.seed(0)
x = [1, 2, 3, 4, 5]
# SDSS
sdss_cos_y = [0.0002097823874872562, 0.00010157668360777361, 0.00021954157002157526, 0.00007982029570363647]
sdss_euc_y = [0.9161877536837101, 0.6374950980203701, 0.9373899935459086, 0.565066367783467]
sdss_max_y = [0.7600000000000016, 0.35999999999999943, 0.5700000000000003, 0.33999999999999986]
# DDSS
ddss_cos_y = [0.0007509346966416697, 0.00027087798626168613, 0.05795288370194629, 0.051820593719981045]
ddss_euc_y = [1.9952944644838793, 1.1923086848631108, 22.649048545137607, 20.689838085398346]
ddss_max_y = [1.6300000000000026, 0.8900000000000006, 20.4, 18.479999999999997]
# SDDS
sdds_cos_y = [0.00012128289190338482, 0.00002665598144591108, 0.02361003499484493, 0.018510159132723913]
sdds_euc_y = [0.7021395872616776, 0.3301514803843844, 10.329632132849646, 9.0760123402296]
sdds_max_y = [0.5, 0.1999999999999993, 8.579999999999998, 7.77]
# NFSS
nfss_cos_y = [0.00027835220565930463, 0.00005560141765137416, 0.0018815677223152916, 0.0018410161057500485]
nfss_euc_y = [1.060188662455886, 0.4726520919238562, 2.760706431332384, 2.7331483677253945]
nfss_max_y = [0.9100000000000001, 0.34999999999999787, 1.5299999999999976, 1.7799999999999976]
# NLSS
nlss_cos_y = [0.0003139915756511513, 0.00021912059827267072, 0.018381820426331963, 0.01362657714567872]
nlss_euc_y = [1.38737161568197, 1.137365376649033, 11.567328991603897, 9.746902071940601]
nlss_max_y = [1.0100000000000007, 0.6000000000000014, 6.399999999999999, 5.309999999999999]
# # 创建散点图
# plt.figure(figsize=(10, 6))
# plt.scatter(x, y, marker="x", color='blue', label="RS" ,alpha=0.6, s=100)
#
# # 设置图表标题和轴标签
# plt.title('cosine_distance', fontsize=16)
# plt.xlabel('X 轴', fontsize=12)
# plt.ylabel('Y 轴', fontsize=12)
#
# # 添加网格线
# plt.grid(True, linestyle='--', alpha=0.7)
#
# # 显示图表
# plt.show()
